/*
 * Copyright (c) Tan Menglong.
 * All rights reserved.
 * 
 * This file is part of the RabbitOS.  The RabbitOS is free software, also known
 * as "open source;" you can redistribute it and/or modify it under the terms
 * of the GNU General Public License (GPL), version 2, as published by the Free
 * Software Foundation (FSF).  To explore alternate licensing terms, contact
 * the Tan Menglong at TanMenglong@gmail.com or +86-15972108715.
 * 
 * The RabbitOS is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE.  See the GPL for more details.  You should have
 * received a copy of the GPL along with the RabbitOS; see the file COPYING.  If
 * not, write to the FSF, 59 Temple Place #330, Boston, MA 02111-1307, USA.
 */
/*
 * ANSI C limits.
 * 07-Jun-08
 */

#ifndef _I386_LIMITS_H
#define _I386_LIMITS_H

#define	SCHAR_MAX	127			/* min value for a signed char */
#define	SCHAR_MIN	(-128)		/* max value for a signed char */

#define	UCHAR_MAX	255			/* max value for an unsigned char */
#define	CHAR_MAX	127			/* max value for a char */
#define	CHAR_MIN	(-128)		/* min value for a char */

#define	USHRT_MAX	65535		/* max value for an unsigned short */
#define	SHRT_MAX	32767		/* max value for a short */
#define	SHRT_MIN	(-32768)	/* min value for a short */

#ifndef UINT_MAX
#define	UINT_MAX	0xffffffff	/* max value for an unsigned int */
#endif
#ifndef INT_MAX
#define	INT_MAX		2147483647	/* max value for an int */
#endif
#ifndef INT_MIN
#define	INT_MIN		(-2147483647-1)	/* min value for an int */
#endif

#ifndef ULONG_MAX
#define	ULONG_MAX	0xffffffff	/* max value for an unsigned long */
#endif
#ifndef LONG_MAX
#define	LONG_MAX	2147483647	/* max value for a long */
#endif
#ifndef LONG_MIN
#define	LONG_MIN	(-2147483647-1)	/* min value for a long */
#endif

#endif							//_I386_LIMITS_H
